//
//  CommentsViewController.h
//  OrderSeat
//
//  Created by 王威 on 14-1-7.
//  Copyright (c) 2014年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CommCell.h"

typedef enum {
    CouponCommType,
    GourmetCommType,
    ActivityCommType,
    PhotoCommType
}CommType;

@class CommentsDataSource;
@interface CommentsViewController : BaseViewController
@property (weak, nonatomic) IBOutlet UITableView *commentsTable;

@property (strong, nonatomic) CommentsDataSource *dataSource;
@property (strong, nonatomic) NSString *pid;
@property (assign, nonatomic) int type;

- (id)initWithId:(NSString*)pid andType:(CommType)type;

@end

@interface CommentsDataSource : BaseDataSource<UITableViewDataSource,UITableViewDelegate>

@property (assign, nonatomic) NSInteger pageNumber;
@property (strong, nonatomic) NSMutableArray *commentsList;
@property (strong, nonatomic) CommentsViewController *viewController;
@property (strong, nonatomic) CommCell *commentCell;

- (void)fetchCommentsIsLoadMore:(BOOL)isLoadMore;

@end
